package edu.cdnu.common.dto;

import java.io.Serializable;

/**
 * 通用的用户信息的dto(数据传输)类
 * @author ASUS AsingZ
 */
public class CommonUserDto implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private int id;
	/**
	 * 账号
	 */
	private String account;
	/**
	 * 姓名
	 */
	private String name;
	/**
	 * 角色id
	 */
	private int roleId;
	
	/**
	 * 还有个有参构造：<br/>
	 * account,name,roleId
	 */
	public CommonUserDto() {}

	public CommonUserDto(int id, String account, String name, int roleId) {
		super();
		this.id = id;
		this.account = account;
		this.name = name;
		this.roleId = roleId;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	@Override
	public String toString() {
		return "CommonUserDto [id=" + id + ", account=" + account + ", name=" + name + ", roleId=" + roleId + "]";
	}
	
}
